﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001D1 RID: 465
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStageTertinggi : IMessage<ChallengeStageTertinggi>, IMessage, IEquatable<ChallengeStageTertinggi>, IDeepCloneable<ChallengeStageTertinggi>, IBufferMessage
	{
		// Token: 0x1700062A RID: 1578
		// (get) Token: 0x06001520 RID: 5408 RVA: 0x0003C5BF File Offset: 0x0003A7BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStageTertinggi> Parser
		{
			get
			{
				return ChallengeStageTertinggi._parser;
			}
		}

		// Token: 0x1700062B RID: 1579
		// (get) Token: 0x06001521 RID: 5409 RVA: 0x0003C5C6 File Offset: 0x0003A7C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStageTertinggiReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700062C RID: 1580
		// (get) Token: 0x06001522 RID: 5410 RVA: 0x0003C5D8 File Offset: 0x0003A7D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStageTertinggi.Descriptor;
			}
		}

		// Token: 0x06001523 RID: 5411 RVA: 0x0003C5DF File Offset: 0x0003A7DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStageTertinggi()
		{
		}

		// Token: 0x06001524 RID: 5412 RVA: 0x0003C5F4 File Offset: 0x0003A7F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStageTertinggi(ChallengeStageTertinggi other) : this()
		{
			this.level_ = other.level_;
			this.battleRecordStars_ = other.battleRecordStars_;
			this.roundCount_ = other.roundCount_;
			this.lineupList_ = other.lineupList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001525 RID: 5413 RVA: 0x0003C64D File Offset: 0x0003A84D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStageTertinggi Clone()
		{
			return new ChallengeStageTertinggi(this);
		}

		// Token: 0x1700062D RID: 1581
		// (get) Token: 0x06001526 RID: 5414 RVA: 0x0003C655 File Offset: 0x0003A855
		// (set) Token: 0x06001527 RID: 5415 RVA: 0x0003C65D File Offset: 0x0003A85D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x1700062E RID: 1582
		// (get) Token: 0x06001528 RID: 5416 RVA: 0x0003C666 File Offset: 0x0003A866
		// (set) Token: 0x06001529 RID: 5417 RVA: 0x0003C66E File Offset: 0x0003A86E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleRecordStars
		{
			get
			{
				return this.battleRecordStars_;
			}
			set
			{
				this.battleRecordStars_ = value;
			}
		}

		// Token: 0x1700062F RID: 1583
		// (get) Token: 0x0600152A RID: 5418 RVA: 0x0003C677 File Offset: 0x0003A877
		// (set) Token: 0x0600152B RID: 5419 RVA: 0x0003C67F File Offset: 0x0003A87F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoundCount
		{
			get
			{
				return this.roundCount_;
			}
			set
			{
				this.roundCount_ = value;
			}
		}

		// Token: 0x17000630 RID: 1584
		// (get) Token: 0x0600152C RID: 5420 RVA: 0x0003C688 File Offset: 0x0003A888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChallengeLineupList> LineupList
		{
			get
			{
				return this.lineupList_;
			}
		}

		// Token: 0x0600152D RID: 5421 RVA: 0x0003C690 File Offset: 0x0003A890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStageTertinggi);
		}

		// Token: 0x0600152E RID: 5422 RVA: 0x0003C6A0 File Offset: 0x0003A8A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStageTertinggi other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.BattleRecordStars == other.BattleRecordStars && this.RoundCount == other.RoundCount && this.lineupList_.Equals(other.lineupList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600152F RID: 5423 RVA: 0x0003C710 File Offset: 0x0003A910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.BattleRecordStars != 0U)
			{
				num ^= this.BattleRecordStars.GetHashCode();
			}
			if (this.RoundCount != 0U)
			{
				num ^= this.RoundCount.GetHashCode();
			}
			num ^= this.lineupList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001530 RID: 5424 RVA: 0x0003C78F File Offset: 0x0003A98F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001531 RID: 5425 RVA: 0x0003C797 File Offset: 0x0003A997
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001532 RID: 5426 RVA: 0x0003C7A0 File Offset: 0x0003A9A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleRecordStars != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BattleRecordStars);
			}
			if (this.RoundCount != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.RoundCount);
			}
			this.lineupList_.WriteTo(ref output, ChallengeStageTertinggi._repeated_lineupList_codec);
			if (this.Level != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001533 RID: 5427 RVA: 0x0003C828 File Offset: 0x0003AA28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.BattleRecordStars != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleRecordStars);
			}
			if (this.RoundCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoundCount);
			}
			num += this.lineupList_.CalculateSize(ChallengeStageTertinggi._repeated_lineupList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001534 RID: 5428 RVA: 0x0003C8AC File Offset: 0x0003AAAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStageTertinggi other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.BattleRecordStars != 0U)
			{
				this.BattleRecordStars = other.BattleRecordStars;
			}
			if (other.RoundCount != 0U)
			{
				this.RoundCount = other.RoundCount;
			}
			this.lineupList_.Add(other.lineupList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001535 RID: 5429 RVA: 0x0003C921 File Offset: 0x0003AB21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001536 RID: 5430 RVA: 0x0003C92C File Offset: 0x0003AB2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 48U)
					{
						this.BattleRecordStars = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.RoundCount = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						this.lineupList_.AddEntriesFrom(ref input, ChallengeStageTertinggi._repeated_lineupList_codec);
						continue;
					}
					if (num == 96U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040008B7 RID: 2231
		private static readonly MessageParser<ChallengeStageTertinggi> _parser = new MessageParser<ChallengeStageTertinggi>(() => new ChallengeStageTertinggi());

		// Token: 0x040008B8 RID: 2232
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008B9 RID: 2233
		public const int LevelFieldNumber = 12;

		// Token: 0x040008BA RID: 2234
		private uint level_;

		// Token: 0x040008BB RID: 2235
		public const int BattleRecordStarsFieldNumber = 6;

		// Token: 0x040008BC RID: 2236
		private uint battleRecordStars_;

		// Token: 0x040008BD RID: 2237
		public const int RoundCountFieldNumber = 8;

		// Token: 0x040008BE RID: 2238
		private uint roundCount_;

		// Token: 0x040008BF RID: 2239
		public const int LineupListFieldNumber = 11;

		// Token: 0x040008C0 RID: 2240
		private static readonly FieldCodec<ChallengeLineupList> _repeated_lineupList_codec = FieldCodec.ForMessage<ChallengeLineupList>(90U, ChallengeLineupList.Parser);

		// Token: 0x040008C1 RID: 2241
		private readonly RepeatedField<ChallengeLineupList> lineupList_ = new RepeatedField<ChallengeLineupList>();
	}
}
